package com.goldgov.branchCircle.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.goldgov.branchCircle.service.ThumbUp;
@Mapper
public interface ThumbUpDao {

	
	/**
	 * 点赞
	 * @param ThumbUp
	 */
	void addThumbUp(ThumbUp thumbUp);
	
	/**
	 * 取消点赞
	 * @param ThumbUp
	 */
	void updateThumbUp(ThumbUp thumbUp);
	
	/**
	 * 点赞详情
	 * @param userID 用户id
	 * @param branchID 支部圈id
	 * @return 
	 */
	ThumbUp getThumbUpByID(@Param("userID") String userID,@Param("branchID") String branchID);
	
	/**
	 * 点赞集合
	 * @param branchID 支部圈id
	 * @return 
	 */
	List<ThumbUp> getThumbUpList(@Param("branchID") String branchID);
	
	
	
}
